package com.lzm.ydpt.mvp.contract;

import com.byt.framlib.basemvp.BaseView;
import com.byt.framlib.basemvp.basebean.BaseResponseBean;
import com.byt.framlib.basemvp.basebean.ListPageBean;
import com.byt.framlib.basemvp.boby.FormBodys;
import com.lzm.ydpt.entity.AddressBook;

import io.reactivex.Observable;

/**
 * 接口名称：FillAddressContract
 * 接口描述：Contract
 */
public interface FillAddressContract {

    /**
     * 模型接口
     */
    interface Model {
        Observable<BaseResponseBean<Object>> onFillAddress(FormBodys formBodys);

        Observable<BaseResponseBean<ListPageBean<AddressBook>>> onHistoryAddressList(FormBodys formBodys);
    }

    /**
     * 代理接口
     */
    interface Presenter {
        void onFillAddress(FormBodys formBodys);

        void onHistoryAddressList(FormBodys formBodys);
    }

    /**
     * 视图接口
     */
    interface View extends BaseView {
        void onFillAddress(String msg);

        void onHistoryAddressList(ListPageBean<AddressBook> addressBookList);
    }
}